<local:DocumentBase x:Class="WPFExcelReport.YCAFS20"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
          xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
       Background="White" 
         Loaded="Window_Loaded" 
     >
    <local:DocumentBase.Resources>
    </local:DocumentBase.Resources>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="1*" /> 
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>        
        <StackPanel Grid.Row="0" Margin="0,5,0,0"  Grid.ColumnSpan="2">
            <WrapPanel > 
                <Button Content="{Binding Source={Localization:Translate Word=查询}}" Height="33" Margin="10,0,0,0"  Name="btnQuery" Width="41" Panel.ZIndex="1"
                        Click="btnQuery_Click"/>
                <Button Content="{Binding Source={Localization:Translate Word=新建}}" Height="33" Margin="30,0,0,0"  Name="btnNew" Width="41" Panel.ZIndex="90"
                        Click="btnNew_Click"/>
                <Button Content="{Binding Source={Localization:Translate Word=修改}}" Height="33" Margin="10,0,0,0"  Name="btnModify" Width="41" Panel.ZIndex="91"
                        Click="btnModify_Click"/>
                <Button Content="{Binding Source={Localization:Translate Word=删除}}" Height="33" Margin="10,0,0,0"  Name="btnDelete" Width="41" Panel.ZIndex="92"
                        Click="btnDelete_Click"/>
                <Button Content="{Binding Source={Localization:Translate Word=确认保存}}" Height="33" Margin="10,0,0,0"  Name="btnSave" Width="63" Panel.ZIndex="93"
                        Click="btnSave_Click"/>
            </WrapPanel>
            <WrapPanel> 
           <WrapPanel  >
                        <Label Content="{Binding Source={Localization:Translate Word=尺码组：}}"    Width="49" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="14" VerticalAlignment="Center" Foreground="#FF141111" />
                        <TextBox Name="txtSZGRP" Width="56" Margin="10,0,0,0"  HorizontalAlignment="Left" Panel.ZIndex="10" Text=""  IsReadOnly="True"
                          Focusable="True" CharacterCasing="Upper" Background="Pink" MaxLength="3" FontSize="14" Foreground="#FF141111" Height="26" />
                        <Label Content="{Binding Source={Localization:Translate Word=尺码：}}"    Width="35" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="14" VerticalAlignment="Center" Foreground="#FF141111" />
                        <TextBox Name="txtSZ" Width="86" Margin="10,0,0,0"  HorizontalAlignment="Left" CharacterCasing="Upper" Panel.ZIndex="11"  IsReadOnly="True"
                         Background="YellowGreen" MaxLength="20" FontSize="14" Foreground="#FF141111" Height="26" />
                        <Label Content="{Binding Source={Localization:Translate Word=尺码描述：}}"    Width="63" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="14" VerticalAlignment="Center" Foreground="#FF141111" />
                        <TextBox Name="txtDESCR" Width="180" Margin="10,0,0,0"  HorizontalAlignment="Left" CharacterCasing="Upper" Panel.ZIndex="12"  IsReadOnly="True"
                         Background="Pink" MaxLength="20" FontSize="14" Foreground="#FF141111" Height="26" />
                        <Label Content="{Binding Source={Localization:Translate Word=伯俊尺码ID：}}"    Width="78" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="14" VerticalAlignment="Center" Foreground="#FF141111" />
                        <TextBox Name="txtINTERFACE" Width="71" Margin="10,0,0,0"  HorizontalAlignment="Left" CharacterCasing="Upper" Panel.ZIndex="13"  IsReadOnly="True"
                         Background="YellowGreen" MaxLength="3" FontSize="14" Foreground="#FF141111" Height="28" />
                    <Label Content="{Binding Source={Localization:Translate Word=接口2：}}"    Width="78" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="14" VerticalAlignment="Center" Foreground="#FF141111" />
                    <TextBox Name="txtINTERFACE2" Width="71" Margin="10,0,0,0"  HorizontalAlignment="Left" CharacterCasing="Upper" Panel.ZIndex="14"  IsReadOnly="True"
                         Background="YellowGreen" MaxLength="7" FontSize="14" Foreground="#FF141111" Height="28" />
                </WrapPanel>
            </WrapPanel>
        </StackPanel>
        <DataGrid Grid.Row="1" Grid.ColumnSpan="2"
            CanUserReorderColumns="True"  
          CanUserResizeRows="True" CanUserSortColumns="True" 
            AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"   
                  EnableColumnVirtualization="True"  
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto"
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible" 
                               ItemsSource="{Binding}" x:Name="MasterDg"  SelectionChanged="MasterDg_SelectionChanged"
                             Margin="0,10,0,0" >
            <!--MANDANT SZGRP SZ DESCR INTERFACE1 INTEXFACE2-->
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=MANDANT}" Header="{Binding Source={Localization:Translate Word=客户端}}" Width="SizeToCells" MinWidth="50" />
                <DataGridTextColumn Binding="{Binding Path=SZGRP}" Header="{Binding Source={Localization:Translate Word=尺码组}}" Width="SizeToCells" MinWidth="50"  />
                <DataGridTextColumn Binding="{Binding Path=SZ}" Header="{Binding Source={Localization:Translate Word=尺码}}" Width="SizeToCells" MinWidth="50" />
                <DataGridTextColumn Binding="{Binding Path=DESCR}" Header="{Binding Source={Localization:Translate Word=尺码描述}}" Width="SizeToCells" MinWidth="50" />
                <DataGridTextColumn Binding="{Binding Path=INTERFACE1}" Header="{Binding Source={Localization:Translate Word=伯俊尺码ID}}" Width="SizeToCells" MinWidth="50" />
                <DataGridTextColumn Binding="{Binding Path=INTERFACE2}" Header="{Binding Source={Localization:Translate Word=接口2}}" Width="SizeToCells" MinWidth="50" />

            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</local:DocumentBase>
